import request from '@/utils/request'

// 查询ControlAcquisition列表
export function listBicycleorder(query) {
  return request({
    url: '/system/bicycle/listorder',
    method: 'get',
    params: query
  })
}

// 查询ControlAcquisition详细
export function getBicycle(bicycleId) {
  return request({
    url: '/system/bicycle/' + bicycleId,
    method: 'get'
  })
}

// 新增ControlAcquisition
export function addBicycle(data) {
  return request({
    url: '/system/bicycle',
    method: 'post',
    data: data
  })
}

// 修改ControlAcquisition
export function updateBicycle(data) {
  return request({
    url: '/system/bicycle',
    method: 'put',
    data: data
  })
}

// 删除ControlAcquisition
export function delBicycle(bicycleId) {
  return request({
    url: '/system/bicycle/' + bicycleId,
    method: 'delete'
  })
}
//查询Tickets是否已结案
export function selectTicketsclose(orderId) {
  return request({
    url: '/system/bicycle/selectTicketsclose/' + orderId,
    method: 'get'
  })
}
//审核
export function updateAudit(bicycleIds) {
  return request({
    url: '/system/bicycle/order/audit/' + bicycleIds,
    method: 'put',
  })
}
//反审核
export function updateUnAudit(bicycleIds) {
  return request({
    url: '/system/bicycle/order/unaudit/' + bicycleIds,
    method: 'put',
  })
}
export function selectFittings() {
  return request({
    url: '/system/bicycle/fittings',
    method: 'get'
  })
}
